FROM eclipse-temurin:11-jre
LABEL maintainer="YouTH996<youth996@163.com>"
ENV TZ 'Asia/Shanghai'
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8

# 挂载目录
VOLUME /home/youth996
# 创建目录
RUN mkdir -p /home/youth996
# 指定路径
WORKDIR /home/youth996
# 复制jar文件到路径
COPY target/nav.jar /home/youth996/nav.jar
COPY src/main/resources/application.yml /home/youth996/application.yml

ENTRYPOINT ["java","-jar","nav.jar","--spring.config.location=application.yml"]
